import request from '../utils/request'

// 获取用户列表
export const getUserList =  (params) => {
  return request.get('/app/user/findAllAdmin',  params )
}

// 修改用户消息
// body userId 用户id
export const updateUser = (params) => {
  return request.put('/app/user/updateUser', params)
}

// 删除用户
// query userId 用户id
export const deleteUser = (params) => {
  return request.del(`/app/user/delUser?userId=${params}`)
}

// 增加用户
// body name  hesdPortrait userMotto userName userPhone
export const addUser = (params) => {
  return request.post('/app/user/addUser', params)
}